import { Request, Response, NextFunction } from 'express'

const errorMiddleWare = (err: any, req: Request, res: Response, next: NextFunction) => {
  console.error(err)
  res.status(500).send('Internal Server Error')
}

export default errorMiddleWare